package com.rkc.service;

import com.rkc.request.AddressAddRequest;
import com.rkc.vo.AddressVO;

import java.util.List;

/**
 * @author `RKC`
 * @date 2021/10/7 16:40
 */
public interface AddressService {

    /**
     * 查询当前用户全部的收货地址
     * @return
     */
    List<AddressVO> listUserAllAddresses();

    /**
     * 查看地址详情
     * @param id
     * @return
     */
    AddressVO detail(Long id);

    /**
     * 新增收货地址
     * @param addressAddRequest
     * @return
     */
    int add(AddressAddRequest addressAddRequest);

    /**
     * 删除收货地址
     * @param addressId
     * @return
     */
    int delete(int addressId);
}
